type Person = { name: string, age: number, alive: boolean };
// type Age = number
type Age = Person['age'];

// type I1 = string | number
type I1 = Person['age' | 'name'];

// type I2 = string | number | boolean
type I2 = Person[keyof Person];

type AliveOrName = 'alive' | 'name';
// type I3 = string | boolean
type I3 = Person[AliveOrName];

const MyArray = [
    { name: "Alice", age: 15 },
    { name: "Bob", age: 23 },
    { name: "Eve", age: 38 },
];

// type Person2 = {
//     name: string;
//     age: number;
// }
type Person2 = typeof MyArray[number];

export {};